<%-- 
    Document   : start
    Created on : Nov 30, 2009, 11:34:00 PM
    Author     : Milan Boricic <boricic@gmail.com>
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<html>
    <f:view>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Rezervacija</title>
        <link rel="stylesheet" title="css" href="stilovi.css">
    </head>
    <body>
      <h:graphicImage url="./files/head.PNG" styleClass="zaglavlje"/>
      <div align="center">
        <h1>Dobrodošli u aplikaciju za rezervisanje sala</h1><br/>
        <h4>Molimo, ulogujte se:</h4><br/>

               <h:form >
               <h:messages/>
                  <table width="40%">
                       <tr>
                           <td allign="left" width="40%" >Korisničko ime:</td>
                           <td><h:inputText value="#{korisnik.username}" required="true"
                                            requiredMessage="Niste uneli korisničko ime"/></td>
                       </tr>
                       <tr>
                           <td allign="left" width="40%">Lozinka:</td>
                           <td><h:inputSecret value="#{korisnik.lozinka}" redisplay="false"
                                       required="true"
                                       requiredMessage="Niste uneli lozinku!"/></td>
                       </tr>
                       <tr>
                           <td allign="left" width="40%" >&nbsp;</td>
                           <td><h:commandButton  value="Ulogujte se" action="#{korisnik.login}"/></td>
                       </tr>

                       <tr>
                           <td colspan="2">Ukoliko nemate nalog morate se prvo <a href="register.faces"><font color="black"><b><u>registrovati</u></b></font></a></td>
                       </tr>
                   </table>
               </h:form>
      </div>
     </body>
     </f:view>
   </html>
